package com.example.easyexceldemo.excelModel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.util.Date;

/**
 * @author wangbao
 * @date 2021/7/19 17:30
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class DemoData {

    @ExcelProperty({"测试标题", "字符"})
    private String string;
    @ExcelProperty({"测试标题", "日期"})
    @ColumnWidth(30)
    private Date data;
    @ExcelProperty({"测试标题", "整型"})
    private Integer intNum;
    @ExcelProperty({"测试标题", "浮点型"})
    private Double doubleNum;
}
